#{extends 'main.html' /}

<!-- @author Nada

this page retrieves a list with all the scores of the user with the exercise name -->


<p
	style="background-color: #FF6600; width: 200px; text-align: center; font-size: 20px;">

</p>

#{ifnot exercisesList}
<p>You did not take any Exercise so far!</p>
#{/ifnot}

<i>My Scores in Exercises:</i>

<form>
	<table width="300" id="dataTable" background="lightblue" ; border="2"
		; BORDERCOLOR=#FF6600>
		<tr>
			<th
				style="background-color: #778899; font-family: Arial; font-size: 20px"><p
					style="color: white;">Exercises</p></th>
			<th
				style="background-color: #778899; font-family: Arial; font-size: 20px"><p
					style="color: white;">Score</p></th> 
					#{list items:exercisesList, as:'eList'}
		</tr>
		<td>
			<ul>
				<li><h4>Exercise Name:
						${models.Exercise.findById(models.Score.findById(eList.id).exerciseId).ExerciseName}
					
					</h4>
				
					</li>


			</ul>
		</td>

		<td>



			<li><h4>

					${models.Score.findById(eList.id).score} <br>


				</h4></li>


		</td> 
	
		#{/list}